﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleData.ObjectModel;
using SimpleData.ObjectModel.Design;

namespace Globals.Types
{
	public class MoneyFieldTypeDescriptor : FieldTypeDescriptor<MoneyFieldType>
	{
		public MoneyFieldTypeDescriptor()
			: base( "Money" )
		{ }
	}

	public class MoneyFieldType : IRuleBuilder, IFieldTypeConverter
	{
		#region IRuleBuilder Members

		public void BuildOn( ValidatorBuilder builder )
		{
			throw new NotImplementedException();
		}

		#endregion

		#region IDataObjectStreamer Members

		public byte[] Serialize( object value )
		{
			throw new NotImplementedException();
		}

		public object Deserialize( byte[] value )
		{
			throw new NotImplementedException();
		}

		#endregion

		#region IFieldTypeConverter Members

		public Type GetDotNetType()
		{
			return typeof( decimal );
		}

		#endregion
	}
}
